package com.lz.controller;

import com.lz.domain.User;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * <pre>
 * @描述：
 * @作者：lizhao
 * @创建时间： 2024/8/26 下午9:23
 * </pre>
 **/
@RequestMapping
@RestController
public class UserController {

    @RequestMapping("/getUser")
    public String getUser(@Valid @RequestBody User user){
        System.out.println(user);
        return "getUser";
    }

}
